package com.central.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.central.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_notice")
public class SysNoticeEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String title; //标题

    private String imageUrl;  //封面图

    private String htmlUrl;    //广告网页

    private String remark;  //备注

    private String type; //类型 SysNoticeTypeEnum

    /**
     * 更新者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

}
